package net.lcheng.manage.vo;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * Created by qiliping on 16/4/9.
 * 开放购买Model
 */
public class OpenSaleModel {
    @NotEmpty(message = "请选择基金")
    private String productId;
    @NotNull(message = "请输入净值")
    private Float netvalue;
    @NotEmpty
    @Pattern(regexp = "^[0-9]{4}-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))$",message = "日期格式不正确")
    private String openDate;
    @Pattern(regexp = "^[0-9]{4}-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))$",message = "日期格式不正确")
    private String clacDate;

    public String getClacDate() {
        return clacDate;
    }

    public void setClacDate(String clacDate) {
        this.clacDate = clacDate;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public Float getNetvalue() {
        return netvalue;
    }

    public void setNetvalue(Float netvalue) {
        this.netvalue = netvalue;
    }

    public String getOpenDate() {
        return openDate;
    }

    public void setOpenDate(String openDate) {
        this.openDate = openDate;
    }
}
